package com.medvalley.tcm.dao;

import com.medvalley.tcm.domain.YangShengTea;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.repository.CrudRepository;

import java.util.List;

public interface YangShengTeaDao extends JpaRepository<YangShengTea, Long> {

    YangShengTea findOneByTeaNameAndStatus(String teaName, int status);

    Page<YangShengTea> findAllByStatus(Pageable pageable, int status);

    List<YangShengTea> findAllByIdIn(List<Long> ids);

    List<YangShengTea> findAllByTeaNameIn(List<String> teaNames);

}
